<?php defined( '_SYS' ) or die( 'No direct script access allowed' );?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title><?php echo $this->title; ?></title>
<?php echo $this->headData; ?>
</head>
<body>
	<div id="toolbar-box">
		<div class="t">
			<div class="t">
				<div class="t"></div>
			</div>
		</div>
		<div class="m">
			<div class="toolbar" id="toolbar">
				<table class="toolbar">
					<tr>
						<td class="button" id="toolbar-edit">
							<a href="#" onclick="javascript:if(document.adminForm.boxchecked.value==0){alert('<?php echo C_text::_('Tip9');?>');}else{ submitbutton('edit')}" class="toolbar">
								<span class="icon-32-edit" title="Edit">
								</span>
							<?php echo C_text::_('Edit');?>
							</a>
						</td>
						<td class="button" id="toolbar-delete">
							<a href="#" onclick="javascript:if(document.adminForm.boxchecked.value==0){alert('<?php echo C_text::_('Tip8');?>');}else{ if(confirm('<?php echo C_text::_('Tip12');?>')) submitbutton('remove')}" class="toolbar">
								<span class="icon-32-delete" title="Delete">
								</span>
							<?php echo C_text::_('Delete');?>
							</a>
						</td>						
					</tr>
				</table>
			</div>
			<div class="header icon-48-massmail"><?php echo C_text::_('ToolBox');?></div>	
			<div class="clr"></div>		
		</div>
		<div class="b">
			<div class="b">
				<div class="b"></div>
			</div>
		</div>
	</div>
	<?php 	if($this->message) echo $this->message;?>
	<div class="clr"></div>
	<div id="element-box">
		<div class="t">
			<div class="t">
				<div class="t"></div>
			</div>
		</div>		
		
		
<div class="m">
<form action="<?php echo WEBSELF; ?>/feedback" method="post" name="adminForm">
	<table>
		<tr>
			<td width="100%" align="left">
				<?php echo C_text::_( 'Filter' ); ?>:
				<input type="text" name="search" id="search" value="<?php echo $this->lists['search'];?>" class="text_area" onchange="if(document.getElementById('limitstart')) document.getElementById('limitstart').value=0;document.adminForm.submit();" />
				<button onclick="if(document.getElementById('limitstart')) document.getElementById('limitstart').value=0;this.form.submit();"><?php echo C_text::_( 'Go' ); ?></button>
				<button onclick="document.getElementById('search').value='';document.adminForm.filter_lists.options[0].selected='true';document.adminForm.filter_list.options[0].selected='true';this.form.submit();"><?php echo C_text::_( 'Reset' ); ?></button>
			</td>
			<td nowrap="nowrap">
				<?php echo $this->lists['form'];?>
			</td>
			<td nowrap="nowrap">
				<?php echo $this->lists['types'];?>
			</td>
			<td nowrap="nowrap">
				<?php echo $this->lists['type'];?>
			</td>			
		</tr>
	</table>

	<table class="adminlist" cellpadding="1">
		<thead>
			<tr>
				<th width="2%" class="title">
					#
				</th>
				<th width="1%" class="title">
					<input class="cb" type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($this->items); ?>);" />
				</th>
				<th class="title" >
					<?php echo C_html::_('grid.sort',   'Items1', 'a.fdtitle', @$this->lists['order_Dir'], @$this->lists['order'] ); ?>
				</th>
				<th width="8%" class="title" >
					<?php echo C_html::_('grid.sort',   'Items2', 'a.readok', @$this->lists['order_Dir'], @$this->lists['order'] ); ?>
				</th>
				<th width="15%" class="title" nowrap="nowrap">
					<?php echo C_text::_( 'Items3' ); ?>
				</th>
				<th class="title" nowrap="nowrap">
					<?php echo C_html::_('grid.sort',   'Items4', 'a.addtime', @$this->lists['order_Dir'], @$this->lists['order'] ); ?>
				</th>
				<th width="2%" class="title" nowrap="nowrap">
					<?php echo C_html::_('grid.sort',   'Items5', 'a.id', @$this->lists['order_Dir'], @$this->lists['order'] ); ?>
				</th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="7">
					<?php echo $this->pagination->getListFooter(); ?>
				</td>
			</tr>
		</tfoot>
		<tbody>
		<?php
		
			$k = 0;
			for ($i=0, $n=count( $this->items ); $i < $n; $i++)
			{
				$row 	=& $this->items[$i];
				$row['readok']	=$row['readok']==1?C_text::_('yes'):C_text::_('no');
			?>
			<tr class="<?php echo "row$k"; ?>">
				<td>
					<?php echo $i+1+$this->pagination->limitstart;?>
				</td>
				<td>
					<?php echo C_html::_('grid.id', $i, $row['id'] ); ?>
				</td>
				<td align="center">
					<a href="#"><?php echo $row['fdtitle']; ?></a>
				</td>
				<td align="center">
					<?php echo $row['readok']; ?>
				</td>
				<td align="center">
					<?php echo $row['ip']; ?>
				</td>
				<td align="center">
					<?php echo $row['addtime']; ?>
				</td>				
				<td>
					<?php echo $row['id']; ?>
				</td>
			</tr>
			<?php
				$k = 1 - $k;
				}
			?>
		</tbody>
	</table>

	<input type="hidden" name="task" value="" />
	<input type="hidden" name="boxchecked" value="0" />
	<input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
	<input type="hidden" name="filter_order_Dir" value="<?php echo $this->lists['order_Dir']; ?>" />
	<?php echo C_HTML::_( 'form.token' ); ?>
</form>
</div>
		<div class="b">
			<div class="b">
				<div class="b"></div>
			</div>
		</div>
</div>
<center>
	Powered by <b><a href='http://www.metinfo.cn' target='_blank'>MetInfo</a></b> ©2008- <?php echo date('Y',time());?>&nbsp;<a href='http://www.metinfo.cn' target='_blank'>www.MetInfo.cn</a>
</center>
<?php echo $this->js; ?>
</body>
</html>